home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / BARNET / COMPILER / SATHER / !Sather / Library / pSather / config / ll_lock next >
Text File  |  1996-02-01  |  773b  |  37 lines

  1. #ifndef LL_LOCK_CONFIG
  2. #define LL_LOCK_CONFIG
  3.  
  4. #ifdef PP
  5. #undef PP
  6. #endif
  7.  
  8. #ifdef I
  9. #undef I
  10. #endif
  11.  
  12. #ifdef E
  13. #undef E
  14. #endif
  15.  
  16. #ifdef B
  17. #undef B
  18. #endif
  19.  
  20. #define PP    no_pre,no_post
  21. #define I    import
  22. #define E    export
  23. #define B    block
  24. #define V    var "@r $$;"
  25. #define VOL    volatile
  26.  
  27. -- most of the functions and macros used in this file are defined
  28. -- in am.h, the rest in pSather.h
  29. LL_LOCK_INIT:            PP,VOL,exec "$0->lck=LCK_CREATE;";
  30. LL_LOCK_L_LCK:            PP,VOL,exec "LCK_LOCK($0->lck);";
  31. LL_LOCK_L_UNLCK:        PP,VOL,exec "LCK_UNLOCK($0->lck);";
  32. LL_LOCK_L_TRY:            PP,VOL,V,exec "$$=LCK_TRY($0->lck);" "$$";
  33. LL_LOCK_LCK:            PP,VOL,exec "ll_lock_lck_remote($0);";
  34. LL_LOCK_UNLCK:            PP,VOL,exec "ll_lock_unlck_remote($0);";
  35. LL_LOCK_TRY:            PP,VOL,V,exec "$$=ll_lock_try_remote($0);" "$$";
  36. #endif
  37.